/* 移动端应用主样式 */
.App {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.main-content {
  min-height: 100vh;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

/* 页面容器 */
.page-container {
  max-width: 100%;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 页面头部 */
.page-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px 0;
}

.page-title {
  font-size: 2.5rem;
  color: white;
  margin: 0 0 10px 0;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 返回按钮 */
.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 1rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-2px);
}

/* 测试网格 */
.test-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  flex: 1;
  margin-bottom: 20px;
}

/* 测试按钮卡片 */
.test-button-card {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 15px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 120px;
}

.test-button-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  background: rgba(255, 255, 255, 1);
}

.test-button-card:active {
  transform: translateY(-2px);
}

.test-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.test-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  text-align: center;
}

.test-description {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  line-height: 1.4;
}

/* 测试内容 */
.test-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 测试卡片 */
.test-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
}

.test-card-header {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
  text-align: center;
}

.test-card-body {
  color: #666;
  line-height: 1.6;
}

.test-card-body ul {
  margin: 15px 0;
  padding-left: 20px;
}

.test-card-body li {
  margin-bottom: 8px;
}

/* 测试操作按钮 */
.test-actions {
  display: flex;
  gap: 15px;
  margin-top: auto;
}

.test-button {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 50px;
}

.test-button.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.test-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.test-button.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.test-button.secondary:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

/* 首页底部 */
.home-footer {
  text-align: center;
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (min-width: 768px) {
  .test-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .page-container {
    padding: 30px;
  }
  
  .test-button-card {
    min-height: 140px;
  }
}

@media (min-width: 1024px) {
  .test-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
  
  .page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
  }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
  .page-container {
    padding: 15px;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .test-button-card {
    padding: 15px;
    min-height: 100px;
  }
  
  .test-icon {
    font-size: 2rem;
  }
  
  .test-title {
    font-size: 1.1rem;
  }
  
  .test-description {
    font-size: 0.8rem;
  }
  
  .test-actions {
    flex-direction: column;
  }
}

/* 横屏优化 */
@media (orientation: landscape) and (max-height: 500px) {
  .page-header {
    margin-bottom: 15px;
    padding: 10px 0;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .test-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .test-button-card {
    padding: 10px;
    min-height: 80px;
  }
  
  .test-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }
  
  .test-title {
    font-size: 0.9rem;
    margin-bottom: 3px;
  }
  
  .test-description {
    font-size: 0.7rem;
  }
}